package hardcode2013;

public class MessageProfile {
	private String keyStr;
	private String itemKeyStr;
	private String itemPrice;
	private String sender;
	private String recipient;
	private String creationDateTime; //yyyy-MM-dd HH:mm
	private String title;
	private String content;
	private boolean isRead;
	
	public MessageProfile(String keyStr, String itemKeyStr, String itemPrice, String sender, String recipient, String creationDateTime, String title, String content, boolean isRead) {
		this.keyStr = keyStr;
		this.itemKeyStr = itemKeyStr;
		this.itemPrice = itemPrice;
		this.sender = sender;
		this.recipient = recipient;
		this.creationDateTime = creationDateTime;
		this.title = title;
		this.content = content;
		this.isRead = isRead;
	}
	
	public String getkeyStr() {return keyStr;}
	public String getItemKeyStr() {return itemKeyStr;}
	public String getItemPrice() {return itemPrice;}
	public String getSender() {return sender;}
	public String getRecipient() {return recipient;}
	public String getCreationDateTime() {return creationDateTime;}
	public String getCreationDateOnly() {return creationDateTime.substring(0, creationDateTime.indexOf(" "));}
	public String getCreationTimeOnly() {return creationDateTime.substring(creationDateTime.indexOf(" ") + 1);}
	public String getTitle() {return title;}
	public String getContent() {return content;}
	public boolean getIsRead() {return isRead;}
	
	public void setKeyStr(String keyStr) {this.keyStr = keyStr;}
	public void setItemKeyStr(String itemKeyStr) {this.itemKeyStr = itemKeyStr;}
	public void setItemPrice(String itemPrice) {this.itemPrice = itemPrice;}
	public void setSender(String sender) {this.sender = sender;}
	public void setRecipient(String recipient) {this.recipient = recipient;}
	public void setCreationDateTime(String creationDateTime) {this.creationDateTime = creationDateTime;}
	public void setTitle(String title) {this.title = title;}
	public void setContent(String content) {this.content = content;}
	public void setIsRead(boolean isRead) {this.isRead = isRead;}
}
